<?php
/**
* Display the upload transaction file screen
*
* @author       Fabrice Douteaud <clearbudget@douteaud.com>
* @package      snippets
* @access       public
*/

/***********************************************************************

  Copyright (C) 2008  Fabrice douteaud (clearbudget@douteaud.com)

    This file is part of ClearBudget.

    ClearBudget is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    ClearBudget is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with ClearBudget.  If not, see <http://www.gnu.org/licenses/>.


************************************************************************/
?>
<div class="title"><?php echo $keys->pageTitle_UploadQif; ?></div><br/>
<div class="tableDiv">
<table>
  <tr><td>
  <form id="QIFUploadForm" enctype="multipart/form-data" action="" method="POST">
  <fieldset style="width:450px;"><legend><?php echo $keys->pageTitle_UploadQif; ?></legend>
  <div id="qifUpload">
  <div id="qifUploadError" style="display:none;"><?php echo $keys->error_UploadQif; ?>(<span id="qifUploadErrorText"></span>)</div>
  <span id="qifUploadLoading" style="display:none;"><?php echo $keys->text_pageUploadQifLoading; ?></span>
  <span id="qifUploadResult" style="display:none;"><?php echo $keys->text_pageUploadQifResult; ?>
  <span id="qifUploadResultCount"></span>
  <br/>
  <a href="#" action="autoFileItem"><?php echo $keys->link_autoSortLong; ?></a><br/>
  </span>
  <ul>
  <li class="jqUploader" id="jqUploader">
  <label for="fileUpload"><?php echo $keys->link_loadQIFFile; ?>: </label>
  <input name="MAX_FILE_SIZE" value="300000" type="hidden" />
  <input name="qiffile"  id="fileToUpload"  type="file" />
  <input name="snippets" type="hidden" value="link_uploadQifSubmit" />
  <button class="button" id="buttonUpload" onclick="return ajaxFileUpload();"><?php echo $keys->text_SendButton;?></button>
  </li>
  </ul>
  </div>
  </fieldset>
  </form>
</td></tr>
</table>
</div>
